"""
语法:
例子:
if 条件1:
   if 条件2:
        代码块1
   else: ---->elif
       代码块2
elif  条件3:
     if 条件4:
        代码块
.....
else:
    if 条件2:
        代码块
"""
#
is_vip="是"
money=100
# if is_vip =="是":
#     if money>=100:
#         money-=50
#     elif money>=50:
#         money -= 20
#     elif money>=30:
#         money -= 10
#     money*=0.8
# else:
#     if money >= 100:
#         money -= 50
#     elif money >= 50:
#         money -= 20
#     elif money >= 30:
#         money -= 10
#
# print(money)

if money>=100:
    money-=50
elif money>=50:
    money -= 20
elif money>=30:
    money -= 10
if is_vip =="是":
    money *= 0.8
print(money)

# 写一个简单的计算器 包含二个数的+-*/
num1=10
num2=30
fuhao=input("输入符号:")
if fuhao=="+":
    print(num1+num2)
elif fuhao=="-":
    print(num1-num2)
elif fuhao=="*":
    print(num1*num2)
else:   #除数不能为0 我们把num2当成除数
    if num2==0:
        print("错误")
    else:
        print(num1/num2)